#pragma once

#include <QtCore>
#include <streams.h>
#include <dvdmedia.h>
#include <mpconfig.h>


#ifdef LRFILTER_EXPORTS
# define LRFILTER_EXPORTS_CLASS __declspec(dllexport)
#else
# define LRFILTER_EXPORTS_CLASS __declspec(dllimport)
#endif

#define MESSAGE_WM_USER                         0x0400

enum MESSAGE_TYPE
{
	MESSAGE_QUIT = MESSAGE_WM_USER + 100,
	START_RENDER ,
	VIDEO_RENDER
};

enum CODEC_TYPE
{
	NO_CODEC = 0,
	MPEG4,
	XviD,
	C10MOON,
	S264,
	T264,
	FFMPEG,
	COREAVC
};

struct Pack_Header
{	
	GUID majortype;
	GUID subtype;
	GUID formattype;		
};

enum UserType
{
	UserType_Teacher = 0,
	UserType_Student
};

enum UserStatus
{
	UserStatus_UnLogin = 0,
	UserStatus_Login,
	UserStatus_JoinCourse
};

enum EventType
{
	Event_Login = 0,
	Event_Logout
};

#if defined(UNICODE)
	QString LoString(TCHAR *str);
#else
	QString LoString(const char *str);
#endif